org.neo4j.kernel
Class StandardExpander

java.lang.Object
  extended by org.neo4j.kernel.StandardExpander
All Implemented Interfaces:
Expander, RelationshipExpander
Direct Known Subclasses:
OrderedByTypeExpander

public abstract class StandardExpander
extends Object
implements Expander


Field Summary
static StandardExpander DEFAULT
           
 
Method Summary
 StandardExpander add(RelationshipType type)
           
abstract  StandardExpander add(RelationshipType type, Direction direction)
           
 StandardExpander addNodeFilter(Predicate<? super Node> filter)
           
 StandardExpander addRelationsipFilter(Predicate<? super Relationship> filter)
           
 org.neo4j.kernel.Expansion<Relationship> expand(Node start)
          Returns relationships for a node in whatever way the implementation likes.
abstract  StandardExpander remove(RelationshipType type)
           
abstract  StandardExpander reversed()
          Returns a new instances with the exact same RelationshipTypes, but with all directions reversed (DirectionRelationshipExpander.reversed().
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final StandardExpander DEFAULT
Method Detail

expand

public final org.neo4j.kernel.Expansion<Relationship> expand(Node start)
Description copied from interface: RelationshipExpander
Returns relationships for a node in whatever way the implementation likes.

Specified by:
expand in interface RelationshipExpander
Parameters:
start - the node to expand.
Returns:
the relationships to return for the node.

toString

public final String toString()
Overrides:
toString in class Object

add

public final StandardExpander add(RelationshipType type)
Specified by:
add in interface Expander

add

public abstract StandardExpander add(RelationshipType type,
                                     Direction direction)
Specified by:
add in interface Expander

remove

public abstract StandardExpander remove(RelationshipType type)
Specified by:
remove in interface Expander

reversed

public abstract StandardExpander reversed()
Description copied from interface: RelationshipExpander
Returns a new instances with the exact same RelationshipTypes, but with all directions reversed (DirectionRelationshipExpander.reversed().

Specified by:
reversed in interface Expander
Specified by:
reversed in interface RelationshipExpander
Returns:
a RelationshipExpander with the same types, but with reversed directions.

addNodeFilter

public StandardExpander addNodeFilter(Predicate<? super Node> filter)
Specified by:
addNodeFilter in interface Expander

addRelationsipFilter

public StandardExpander addRelationsipFilter(Predicate<? super Relationship> filter)
Specified by:
addRelationsipFilter in interface Expander


Copyright © 2010 Neo4j. All Rights Reserved.